<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>

    <script src="priorityqueue.js"></script>
    <script>

        var priorityQueue = new PriorityQueue()

        priorityQueue.enqueue('aaa',20)
        priorityQueue.enqueue('bbb',10)
        priorityQueue.enqueue('ccc',90)
        priorityQueue.enqueue('ddd',45)

        console.log(priorityQueue.size());
        console.log(priorityQueue);
    </script>
    
</body>
</html>